home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / iritsm3s.zip / makefile.unx < prev    next >
Makefile  |  1992-03-01  |  2KB  |  79 lines

  1. #
  2. # This make file is the main make file of the IRIT solid modeller and its
  3. # auxilary tools, under UNIX.
  4. #
  5. # Do the following before run make:
  6. #
  7. # 1. Edit 'makeflag.unx' for the exact path names to be used for libraries and
  8. #    binaries. Set the proper C compiler and graphics library flags in
  9. #    makeflag.unx as well.
  10. # 2. The libgif.a is not provided here. See the documentation on how to get
  11. #    it. Without it poly3d-r cannot be build and poly3d with build without
  12. #    screen save into gif options. Both are not major to this package.
  13. #    The make files are set as if libgif.a IS NOT PROVIDED.
  14. #
  15. #                Gershon Elber, Nov. 1991
  16. #
  17.  
  18. include makeflag.unx
  19.  
  20. #
  21. #
  22. #
  23. ALL_DIRS = cagd_lib misc_lib irit poly3d poly3d-h iritfltr docs # poly3d-r
  24.  
  25. #
  26. # Uncommend the following variable to only see the actions taken.
  27. #
  28. # VIEW_ONLY = -n
  29.  
  30. SHELL = /bin/sh
  31.  
  32. all:    binaries doc
  33.     -for f in "" \
  34.           "Before executing the test suite and/or any usage of this" \
  35.           "package you will have to issue the following commands:" \
  36.           "" \
  37.           "setenv IRIT_PATH $(BIN_DIR)/" \
  38.           "set path = (path $(BIN_DIR))" \
  39.           "" \
  40.           "or similar."; do \
  41.         (echo $$f) \
  42.     done
  43.  
  44. binaries:
  45.     -for f in $(ALL_DIRS); do \
  46.         (cd $$f \
  47.          && echo ----------- `pwd` ------------- \
  48.          && make $(VIEW_ONLY) -f makefile.unx install); \
  49.     done
  50.     strip $(BIN_DIR)/poly3d $(BIN_DIR)/poly3d-h \
  51.           $(BIN_DIR)/irit $(BIN_DIR)/irit2ray \
  52.           $(BIN_DIR)/irit2nff $(BIN_DIR)/dat2irit
  53.  
  54. #
  55. # Make hardcopy documentation.
  56. #
  57. doc:
  58.     (cd docs && \
  59.      make $(VIEW_ONLY) -f makefile.unx irit.tex irit.doc)
  60.  
  61. clean:
  62.     -rm .~* .\#*            # Emacs backup files.
  63.     -for f in $(ALL_DIRS); do \
  64.         (rm $$f/*.a $$f/*.o $$f/*mon.out $$f/.~* $$f/.\#* $$f/*mon.out); \
  65.     done
  66.     -rm poly3d-r/*.gif
  67.     -rm poly3d-h/*.hdn
  68.     -rm irit/*.dat
  69.     -rm docs/irithlp docs/irithlp.o
  70.  
  71. #
  72. # Test some of the above programs. Make sure $(BIN_DIR) is in your path.
  73. #
  74. test:
  75.     -(cd irit && irit demo)
  76.     -for f in poly3d poly3d-h; do \
  77.         (cd $$f && csh test.bat); \
  78.     done
  79.